removed assertements for constructed containers again, since this
authorTim Janik <timj@gtk.org>
Mon, 23 Nov 1998 04:32:04 +0000 (04:32 +0000)
committerTim Janik <timj@src.gnome.org>
Mon, 23 Nov 1998 04:32:04 +0000 (04:32 +0000)
Mon Nov 23 05:21:50 1998  Tim Janik  <timj@gtk.org>

        * gtk/gtkcontainer.c:
        (gtk_container_add_with_args):
        (gtk_container_addv):
        (gtk_container_add): removed assertements for constructed containers
        again, since this essentially breaks the "child" arg.

        * gtk/gtktooltips.c (gtk_tooltips_force_window): fixup the draw_window
        reference count, we don't need to reference toplevels that already have
        destroy notifiers.

        * gtk/gtkscrolledwindow.c: check for the composites existance in
        _forall since we might not be already constructed.

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtkcontainer.c
gtk/gtkscrolledwindow.c
gtk/gtktooltips.c

index 7e0001b44b80a1384c5c4cd9c8e84272c50bc515..efc272e536b764662ade7e4dcd85bf45bb52ab87 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,18 @@
+Mon Nov 23 05:21:50 1998  Tim Janik  <timj@gtk.org>
+
+       * gtk/gtkcontainer.c:
+       (gtk_container_add_with_args): 
+       (gtk_container_addv): 
+       (gtk_container_add): removed assertements for constructed containers
+       again, since this essentially breaks the "child" arg.
+
+       * gtk/gtktooltips.c (gtk_tooltips_force_window): fixup the draw_window
+       reference count, we don't need to reference toplevels that already have
+       destroy notifiers.
+
+       * gtk/gtkscrolledwindow.c: check for the composites existance in
+       _forall since we might not be already constructed.
+
 Sun Nov 22 14:34:58 CST 1998 Shawn T. Amundson <amundson@gtk.org>
 
        * Released GTK+ 1.1.5
index 7e0001b44b80a1384c5c4cd9c8e84272c50bc515..efc272e536b764662ade7e4dcd85bf45bb52ab87 100644 (file)
@@ -1,3 +1,18 @@
+Mon Nov 23 05:21:50 1998  Tim Janik  <timj@gtk.org>
+
+       * gtk/gtkcontainer.c:
+       (gtk_container_add_with_args): 
+       (gtk_container_addv): 
+       (gtk_container_add): removed assertements for constructed containers
+       again, since this essentially breaks the "child" arg.
+
+       * gtk/gtktooltips.c (gtk_tooltips_force_window): fixup the draw_window
+       reference count, we don't need to reference toplevels that already have
+       destroy notifiers.
+
+       * gtk/gtkscrolledwindow.c: check for the composites existance in
+       _forall since we might not be already constructed.
+
 Sun Nov 22 14:34:58 CST 1998 Shawn T. Amundson <amundson@gtk.org>
 
        * Released GTK+ 1.1.5
index 7e0001b44b80a1384c5c4cd9c8e84272c50bc515..efc272e536b764662ade7e4dcd85bf45bb52ab87 100644 (file)
@@ -1,3 +1,18 @@
+Mon Nov 23 05:21:50 1998  Tim Janik  <timj@gtk.org>
+
+       * gtk/gtkcontainer.c:
+       (gtk_container_add_with_args): 
+       (gtk_container_addv): 
+       (gtk_container_add): removed assertements for constructed containers
+       again, since this essentially breaks the "child" arg.
+
+       * gtk/gtktooltips.c (gtk_tooltips_force_window): fixup the draw_window
+       reference count, we don't need to reference toplevels that already have
+       destroy notifiers.
+
+       * gtk/gtkscrolledwindow.c: check for the composites existance in
+       _forall since we might not be already constructed.
+
 Sun Nov 22 14:34:58 CST 1998 Shawn T. Amundson <amundson@gtk.org>
 
        * Released GTK+ 1.1.5
index 7e0001b44b80a1384c5c4cd9c8e84272c50bc515..efc272e536b764662ade7e4dcd85bf45bb52ab87 100644 (file)
@@ -1,3 +1,18 @@
+Mon Nov 23 05:21:50 1998  Tim Janik  <timj@gtk.org>
+
+       * gtk/gtkcontainer.c:
+       (gtk_container_add_with_args): 
+       (gtk_container_addv): 
+       (gtk_container_add): removed assertements for constructed containers
+       again, since this essentially breaks the "child" arg.
+
+       * gtk/gtktooltips.c (gtk_tooltips_force_window): fixup the draw_window
+       reference count, we don't need to reference toplevels that already have
+       destroy notifiers.
+
+       * gtk/gtkscrolledwindow.c: check for the composites existance in
+       _forall since we might not be already constructed.
+
 Sun Nov 22 14:34:58 CST 1998 Shawn T. Amundson <amundson@gtk.org>
 
        * Released GTK+ 1.1.5
index 7e0001b44b80a1384c5c4cd9c8e84272c50bc515..efc272e536b764662ade7e4dcd85bf45bb52ab87 100644 (file)
@@ -1,3 +1,18 @@
+Mon Nov 23 05:21:50 1998  Tim Janik  <timj@gtk.org>
+
+       * gtk/gtkcontainer.c:
+       (gtk_container_add_with_args): 
+       (gtk_container_addv): 
+       (gtk_container_add): removed assertements for constructed containers
+       again, since this essentially breaks the "child" arg.
+
+       * gtk/gtktooltips.c (gtk_tooltips_force_window): fixup the draw_window
+       reference count, we don't need to reference toplevels that already have
+       destroy notifiers.
+
+       * gtk/gtkscrolledwindow.c: check for the composites existance in
+       _forall since we might not be already constructed.
+
 Sun Nov 22 14:34:58 CST 1998 Shawn T. Amundson <amundson@gtk.org>
 
        * Released GTK+ 1.1.5
index 7e0001b44b80a1384c5c4cd9c8e84272c50bc515..efc272e536b764662ade7e4dcd85bf45bb52ab87 100644 (file)
@@ -1,3 +1,18 @@
+Mon Nov 23 05:21:50 1998  Tim Janik  <timj@gtk.org>
+
+       * gtk/gtkcontainer.c:
+       (gtk_container_add_with_args): 
+       (gtk_container_addv): 
+       (gtk_container_add): removed assertements for constructed containers
+       again, since this essentially breaks the "child" arg.
+
+       * gtk/gtktooltips.c (gtk_tooltips_force_window): fixup the draw_window
+       reference count, we don't need to reference toplevels that already have
+       destroy notifiers.
+
+       * gtk/gtkscrolledwindow.c: check for the composites existance in
+       _forall since we might not be already constructed.
+
 Sun Nov 22 14:34:58 CST 1998 Shawn T. Amundson <amundson@gtk.org>
 
        * Released GTK+ 1.1.5
index 7e0001b44b80a1384c5c4cd9c8e84272c50bc515..efc272e536b764662ade7e4dcd85bf45bb52ab87 100644 (file)
@@ -1,3 +1,18 @@
+Mon Nov 23 05:21:50 1998  Tim Janik  <timj@gtk.org>
+
+       * gtk/gtkcontainer.c:
+       (gtk_container_add_with_args): 
+       (gtk_container_addv): 
+       (gtk_container_add): removed assertements for constructed containers
+       again, since this essentially breaks the "child" arg.
+
+       * gtk/gtktooltips.c (gtk_tooltips_force_window): fixup the draw_window
+       reference count, we don't need to reference toplevels that already have
+       destroy notifiers.
+
+       * gtk/gtkscrolledwindow.c: check for the composites existance in
+       _forall since we might not be already constructed.
+
 Sun Nov 22 14:34:58 CST 1998 Shawn T. Amundson <amundson@gtk.org>
 
        * Released GTK+ 1.1.5
index 881471ca7d23781f6bd0a03182ef0cda9dbba3b9..c78c160a6bcf73577dd3fc74f2f1e0481f270aae 100644 (file)
@@ -248,7 +248,6 @@ gtk_container_add_with_args (GtkContainer      *container,
   g_return_if_fail (widget != NULL);
   g_return_if_fail (GTK_IS_WIDGET (widget));
   g_return_if_fail (widget->parent == NULL);
-  g_return_if_fail (GTK_OBJECT_CONSTRUCTED (container) == TRUE);
 
   gtk_widget_ref (GTK_WIDGET (container));
   gtk_widget_ref (widget);
@@ -307,7 +306,6 @@ gtk_container_addv (GtkContainer      *container,
   g_return_if_fail (widget != NULL);
   g_return_if_fail (GTK_IS_WIDGET (widget));
   g_return_if_fail (widget->parent == NULL);
-  g_return_if_fail (GTK_OBJECT_CONSTRUCTED (container) == TRUE);
 
   gtk_widget_ref (GTK_WIDGET (container));
   gtk_widget_ref (widget);
@@ -692,7 +690,6 @@ gtk_container_add (GtkContainer *container,
   g_return_if_fail (widget != NULL);
   g_return_if_fail (GTK_IS_WIDGET (widget));
   g_return_if_fail (widget->parent == NULL);
-  g_return_if_fail (GTK_OBJECT_CONSTRUCTED (container) == TRUE);
 
   gtk_signal_emit (GTK_OBJECT (container), container_signals[ADD], widget);
 }
index d68960b924b3176887927a50c4d88cee37d0383f..944026fc2bc1e3908ee849d35b58fb2742ce7b4c 100644 (file)
@@ -547,8 +547,10 @@ gtk_scrolled_window_forall (GtkContainer *container,
     callback (scrolled_window->child, callback_data);
   if (include_internals)
     {
-      callback (scrolled_window->vscrollbar, callback_data);
-      callback (scrolled_window->hscrollbar, callback_data);
+      if (scrolled_window->vscrollbar)
+       callback (scrolled_window->vscrollbar, callback_data);
+      if (scrolled_window->hscrollbar)
+       callback (scrolled_window->hscrollbar, callback_data);
     }
 }
 
index 74cdcbc92bba96a1479fb130521c69a2f20f0cfa..123c37c8576be2337dcc6c2ae0f0c54b0f711f7c 100644 (file)
@@ -175,7 +175,6 @@ gtk_tooltips_force_window (GtkTooltips *tooltips)
   if (!tooltips->tip_window)
     {
       tooltips->tip_window = gtk_draw_window_new (GTK_WINDOW_POPUP);
-      gtk_widget_ref (tooltips->tip_window);
       gtk_window_set_policy (GTK_WINDOW (tooltips->tip_window), FALSE, FALSE, TRUE);
 
       gtk_signal_connect_object (GTK_OBJECT (tooltips->tip_window),